package com.ibeeking.found.msg.service.common.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName WxmpAutoMessageVo
 * @Description
 * @Author ibeeking
 * @Date 2021-02-05 19:11
 **/
@Data
public class MpAutoMessageVO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * MpId
     */
    private String appId;

    /**
     * 事件类型
     */
    private String eventType;


    /**
     * 关键字规则
     */
    private String ruleName;

    private List<String> keys;

    private Message message;

    @Data
    public static class Message {
        /**
         * 消息类型
         */
        private String sourceType;

        /**
         * 回复消息的内容
         */
        private String unionKey;

        private List<WxMpSourceDetailPageVO> wxMpSourceDetailPageVos = new ArrayList();

        private String repUrl;

        private String repName;
    }


}
